#include "sem.hpp"

//client read 并且管理msg和sem
int main()
{
    Msg msg(gpathname, gproj_id, gUser);
    while (true)
    {
        int res = msg.MsgWrite();
        if (res == -2)
            break;
        std::cout << "write success" << std::endl;
        sleep(1);
    }
    
    return 0;
}